package JFrame;

import javax.swing.*;

/**
 * @author DONG
 */
public class SnackJFrame_nan extends JFrame {

    public SnackJFrame_nan(String id) {
        JFrame frame = new JFrame("贪吃蛇");
        frame.setBounds(10, 10, 910, 720);
        frame.setResizable(false);//窗口大小不可变
        frame.setVisible(true);
        frame.setDefaultCloseOperation(DISPOSE_ON_CLOSE);
        frame.add(new SnackPanel_nan(id));

    }

}
